package com.example.cunion.service;

import com.example.cunion.entity.Advertisement;
import com.example.cunion.entity.Advertisement;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.HashMap;
import java.util.List;

/**
* @author Aero
* @description 针对表【advertisement(广告表)】的数据库操作Service
* @createDate 2023-10-22 23:43:49
*/
public interface AdvertisementService extends IService<Advertisement> {

    List<HashMap> searchUnCheckAdvertisementByPage(HashMap map);

    List<HashMap> searchUnCheckAdminAdvertisementByPage(HashMap map);

    Integer agreeAdvertisement(String id);

    Integer rejectAdvertisement(String id);

    Integer addAdvertisement(HashMap map);

    Integer updateAdvertisementStatus(HashMap map);


    //使用mp完成增删改查
    Integer addAdvertisement(Advertisement advertisement);
    Integer deletedAdvertisement(String advertisementId);
    Integer updateAdvertisement(Advertisement advertisement);
    List<Advertisement> searchAdvertisement(Integer start, Integer length);

}
